<template>
    <div class="disflex jusbet bbdashd2 lh60 pl29 pr25">
        <span class="fs20 c333 ffpf" v-html="links.title"></span>
        <div class="textr cblue fs14 media_disnone">
            <span class="iconfont icon-shouye c70 fs16"></span>
            <span class="curpointer" @click="$router.push('/index')">首页 > </span>
            <span class="curpointer" v-html="links.one.text + '>'" @click="typeOneTap"></span>
            <span class="curpointer" v-html="links.two.text" @click="typeTwoTap"></span>
            <span class="curpointer" v-show="isdetail">>详情</span>
        </div>
        <div class="textr lh10 disnone media_disblock" @click="menuShow">
            <span class="iconfont el-icon-menu fs30 cblue"></span>
        </div>
    </div>
</template>

<script>
    export default {
        name: "Title",
        props:['links','isdetail'],
        data(){
            return{
                title : '',
                status:0
            }
        },
        created(){
            this.status = this.$route.query.status || 0;
        },
        methods:{
            typeOneTap(){
                if(this.links.contact){
                    this.$emit('typeOneTap',this.links.one.link);
                }else{
                    this.$router.push({path:'/details/'+this.links.one.id,query:{index:this.links.index,taps:'more',two:0,status:this.status}})
                }
            },
            typeTwoTap(){
                if(!this.isdetail){return}
                this.$emit('back');
            },
            menuShow(){
                this.$emit('menuShow')
            }
        }
    }
</script>

<style>

</style>













